<template>
  <div class="config-param">
    <!-- 1 -->
    <div class="setting-title">
      <span class="title">图标配置</span>
    </div>
    <!-- 可见级别 -->
    <div class="attr-item-edit-wrapper">
        <p class="attr-item-title pdt10">可见级别</p>
        <div class="col-1 attr-item-edit-input">
          <el-slider
            show-input
            :min="0"
            :max="20"
            input-size="mini"
            :step="1"
          ></el-slider>
          <div class="attr-item-edit-input-des">默认范围（0-20）</div>
        </div>
    </div>
    <!-- 2 -->
    <div class="line"></div>
    <div class="setting-title">
      <span class="title">区域样式</span>
    </div>
    <!-- 填充颜色 -->
    <div class="attr-item-edit-wrapper">
      <p class="attr-item-title">背景颜色</p>
      <div class="col-1 attr-item-edit-input selectColor">
        <el-input size="mini" placeholder="">
        </el-input>
        <el-color-picker
          size="mini"
          :show-alpha="true"
          >
        </el-color-picker>
        <div class="attr-item-edit-input-des">最小值</div>
      </div>
    </div>
    <div class="attr-item-edit-wrapper">
      <p class="attr-item-title"></p>
      <div class="col-1 attr-item-edit-input selectColor">
        <el-input size="mini" placeholder="">
        </el-input>
        <el-color-picker
          size="mini"
          :show-alpha="true"
          >
        </el-color-picker>
        <div class="attr-item-edit-input-des">最大值</div>
      </div>
    </div>
    <div class="attr-item-edit-wrapper">
      <p class="attr-item-title"></p>
      <div class="col-1 attr-item-edit-input selectColor">
        <el-input size="mini" placeholder="">
        </el-input>
        <el-color-picker
          size="mini"
          :show-alpha="true"
          >
        </el-color-picker>
        <div class="attr-item-edit-input-des">无数据</div>
      </div>
    </div>
    <!-- 边线样式 -->
    <div class="attr-item-edit-wrapper">
      <p class="attr-item-title">边线样式</p>
      <div class="col-1 attr-item-edit-input">
        <el-select
        style="width: 100%;"
        placeholder="请选择"
        size="mini"
      >
        <el-option
          v-for="item in borderTypeOptions"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option>
      </el-select>
      </div>
    </div>
    <div class="attr-item-edit-wrapper">
      <p class="attr-item-title"></p>
      <div class="col-1 attr-item-edit-input selectColor">
        <el-input size="mini" placeholder="">
        </el-input>
        <el-color-picker
          size="mini"
          :show-alpha="true"
          >
        </el-color-picker>
      </div>
    </div>
    <!-- 字体样式 -->
    <div class="attr-item-edit-wrapper">
      <p class="attr-item-title">字体样式</p>
      <div class="col-1 attr-item-edit-input">
        <word-style></word-style>
      </div>
    </div>
  </div>
</template>

<script>
import WordStyle from '../../word-style'
export default {
  components: {
    WordStyle
  },
  props: {

  },
  data(){
    return {
      num: '',
      borderTypeOptions: [
        {
          value: 'solid',
          label: '——————————'
        },
        {
          value: 'dashed',
          label: '-------------------------'
        },
        {
          value: 'dottle',
          label: '............................................'
        },
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.pdt10 {
  padding-top: 10px;
}
.mgb30 {
  margin-bottom: 30px;
}
.tc {
  text-align: left;
}
.vts {
  vertical-align: super;
}
.line {
  border-top: 2px solid #ccc;
  margin: 10px 0;
}
.config-param {
  .setting-title {
    margin-bottom: 10px;
    .title {
      font-size: 14px;
      font-weight: bold;
    }
  }
  .attr-item-edit-wrapper {
    display: flex;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    padding-left: 0;
    .attr-item-title {
      display: inline-block;
      text-align: left;
      min-width: 75px;
      font-size: 12px;
    }
    .attr-item-edit-input {
      &.col-2 {
        width: 90px;
        margin-left: 10px;
      }
      &.col-1 {
        width: 250px;
      }
      &.col-3 {
        width: 60px;
        margin-left: 10px;
      }
      &.col-4 {
        width: 50px;
        margin-left: 10px;
      }
      .attr-item-edit-input-des {
        text-align: left;
        line-height: 1;
        padding-top: 5px;
        margin-top: 2px;
        font-size: 12px;
        color: $gray;
      }
    }
  }
}
</style>
<style lang="scss">
.attr-item-edit-wrapper {
  .el-input-number.is-controls-right .el-input__inner {
    padding-left: 2px;
    padding-right: 32px;
    width: 90px;
  }
  .el-input-number--mini {
    width: 90px;
  }
  .el-slider__runway.show-input {
    margin-right: 108px;
  }
}
</style>